import type { ITestItem } from './type'

export class TestItem implements ITestItem {
    constructor(
        public id: string,
        public title: string,
        public content: string,
        public level: number,
        public paperName: string,
        public category: string,
        public lastTime: number,
        public sortId: number
    ) { }
}

export function createTestItem(
    id: string,
    title: string,
    content: string,
    level: number,
    paperName: string,
    category: string,
    lastTime: number,
    sortId: number

): ITestItem {
    return new TestItem(
        id,
        title,
        content,
        level,
        paperName,
        category,
        lastTime,
        sortId
    )
}